home *** CD-ROM | disk | FTP | other *** search
/ Zoom 2 / Zoom - Release 2 (1996)(Active Software)[!].iso / programming / amos / amossible / structures / procs.bak / procs.amosSourceCode
Encoding:
AMOS Source Code  |  1980-05-17  |  949 b   |  24 lines

  1. '****************THE RIGHT PROCEDURE-By Mark Wickson************************** 
  2. Rem Procedures are like subroutines,except they can contain variables of 
  3. Rem their own,but will be totally ignored if you don't call for them by name.
  4. Rem To read more about procedures and variables,read the on-disk document
  5. Rem files
  6. Rem To start a procedure write:
  7. Rem Procedure  
  8. Rem and then after "Procedure write the procedure name(In this case lets 
  9. Rem call it ZAP):
  10. Rem Procedure ZAP
  11. Rem Then on the lines below,you can enter all the commands you want, 
  12. Rem then you must put on a seperate line:
  13. Rem End Proc 
  14. Rem The procedure will then finish and the program will return to just after 
  15. Rem you called up the procedure.To call a procedure from anywhere in a program,
  16. Rem just type its name(eg.If you wanted procedure ZAP,you'd write):
  17. Rem ZAP
  18. WOW
  19. Procedure WOW
  20. Print "This is Procedure WOW"
  21. End Proc
  22. Procedure AMAZED
  23. Print "This is Procedure AMAZED"
  24. End Proc